package com.springboot.cloud.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class aoptest {

	@Around("execution(public * com.springboot.cloud.controller.*.*(..))")
	public Object aop(ProceedingJoinPoint pjp) throws Throwable {
		System.out.println("aop start");
		return pjp.proceed();
	}

}
